#!/bin/bash

DIR="$( cd "$( dirname "$0" )" && pwd )"

source $DIR/experiment-variables.sh
source $DIR/env.sh

INSTALLCMD='echo 1'

echo "nodes: $NODES"

echo "Installing java on $MAINSERVER"
ssh -i $SSH_KEY $USER@$MAINSERVER "$INSTALLCMD"

for node in $NODES; do
	echo "Installing java on $node"
	ssh -i $SSH_KEY $USER@$node "$INSTALLCMD"
done


for client in $JMETERCLIENT; do
	echo "Installing java on $client"
	ssh -i $SSH_KEY $USER@$client "$INSTALLCMD"
done


